import { FileSchema } from "./fileSchema"

export interface PDFSchema {
  bizid: string
  caseid: string
  checkcode: string
  convert_info: string
  creater_datetime: number
  creator: string
  creatorid: string
  docx_path: string
  editable: string
  file_md5: string
  filename: string
  id: string
  num: string
  parameters: PDFParamSchema[]
  pdf_path: string
  receiver: string
  remark: string
  seal: string
  serialno: string
  serialno_desc: string
  status: 1
  temp_seal: string | null
  tempid: string
  type: string
  version: string
  original_filename: string
  signed_file: FileSchema | null
}

export interface PDFParamSchema {
  doc_parm_id: string
  documentid: string
  id: string
  ishidden: boolean
  orderno: number
  parm_input_type: string
  parm_key: string
  parm_type_data: string
  parm_type_url: string
  parm_value: string
  readonly: boolean
  required: 1
}

export interface PDFTemplateSchema {
  case_element_type: string
  code: string
  code_type: string
  docx_path: string
  id: string
  isolog_code: string
  level: number
  orderno: number
  pdf_path: string
  pid: string
  seal: string
  text_temp: string
  title: string
  type: string
  type_order: number
  user_define: number | boolean
  version: number
  temp_sign_type: string
  [k: string]: any
}

export interface PDFSignSchema {
  accountid: string
  action_subject: string
  caseid: string
  certifyid: string
  create_datetime: number
  documentid: string
  facecheck_info: string
  facecheck_status: string
  id: string
  location_page: number
  locationx: number
  locationy: number
  mobile: string
  name: string
  operator: string
  operatorid: string
  sign_fileid: string
  sign_keyword: string
  sign_type: string
  signed_fileid: string
  status: string
  license: string
  update_datetime: string
}